<style>
.actions hr { margin-bottom:3px; margin-top:3px; border-color:#333;}
</style>
<?php
$this_controller	=	'';//strtolower($this->params->params['controller']);
$this_action		=	'';//strtolower($this->params->params['action']);

//pr($this->params->params);
?>
		<div class="col-md-3">
			<div class="actions">
				<div class="panel panel-default">
					<div class="panel-heading"><?php echo __('Actions'); ?></div>
						<div class="panel-body">
							<ul class="nav nav-pills nav-stacked">
                            <?php 
							$block_controllers	=	array('websitesettings');
							$controller	=	strtolower($this->params['controller']); 
							if(!in_array($controller,$block_controllers)) {
							?>
                            <li><?php echo $this->Html->link(__('New '.Inflector::humanize(Inflector::singularize($this->params['controller']))), array('action' => 'add'), array('escape' => false)); ?></li>
                            <li><hr/></li> <?php } ?>
		<li <?php if(($this_controller=='websitesettings')) echo 'class="active"'; ?> ><?php echo $this->Html->link(__('Website Settings'), array('plugin'=>false,'controller'=>'WebsiteSettings','action' => 'index'), array('escape' => false)); ?> </li>
		<li <?php if(($this_controller=='properties')) echo 'class="active"'; ?> ><?php echo $this->Html->link(__('List Properties'), array('plugin'=>false,'controller'=>'Properties','action' => 'index'), array('escape' => false)); ?> </li>
		<li <?php if(($this_controller=='cities')) echo 'class="active"'; ?> ><?php echo $this->Html->link(__('List Cities'), array('plugin'=>false,'controller'=>'cities','action' => 'index'), array('escape' => false)); ?> </li>
		<li <?php if(($this_controller=='users')) echo 'class="active"'; ?>><?php echo $this->Html->link(__('List Agents'), array('plugin'=>false,'controller'=>'Users','action' => 'index','agent'), array('escape' => false)); ?> </li>
		<li <?php if(($this_controller=='users')) echo 'class="active"'; ?>><?php echo $this->Html->link(__('List Brokers'), array('plugin'=>false,'controller'=>'Users','action' => 'index'), array('escape' => false)); ?> </li>
		<li <?php if(($this_controller=='propertytypes')) echo 'class="active"'; ?> ><?php echo $this->Html->link(__('Property Types'), array('plugin'=>false,'controller'=>'PropertyTypes','action' => 'index'), array('escape' => false)); ?> </li>
                            <li><hr/></li>
		<li <?php if(($this_controller=='blog_posts')) echo 'class="active"'; ?> ><?php echo $this->Html->link(__('Blog Post'), array('plugin'=>'blog','controller'=>'blog_posts','action' => 'index'), array('escape' => false)); ?> </li>
		<li <?php if(($this_controller=='blog_post_categories')) echo 'class="active"'; ?> ><?php echo $this->Html->link(__('Blog Categories'), array('plugin'=>'blog','controller'=>'blog_post_categories','action' => 'index'), array('escape' => false)); ?> </li>
		<li <?php if(($this_controller=='blog_post_tags')) echo 'class="active"'; ?> ><?php echo $this->Html->link(__('Blog Post Tags'), array('plugin'=>'blog','controller'=>'blog_post_tags','action' => 'index'), array('escape' => false)); ?> </li>
                            <li><hr/></li>
                            <li>
		<li <?php if(($this_controller=='blog_post_tags')) echo 'class="active"'; ?> ><?php echo $this->Html->link(__('Packages'), array('plugin'=>false,'controller'=>'packages','action' => 'index'), array('escape' => false)); ?> </li>
                            </li>
                            <li><hr/></li>
                            <li>
		<?php echo $this->Form->postLink('Clear Cache/Session', array('plugin'=>false,'controller'=>'Users','action' => 'admin_clear_cache','admin'=>true), array('escape' => false), __('Are you sure you want to Clear Cache/Session. All Site Cache, Session will be reset. All agent/Broker will be logout')); ?>
                            </li>
		<li><?php //echo $this->Html->link(__('Clear Cache/Session'), array('plugin'=>false,'controller'=>'Users','action' => 'admin_clear_cache','admin'=>true), array('escape' => false)); ?> </li>
                            <li><hr/></li>
		<li><?php echo $this->Html->link(__('Logout'), array('plugin'=>false,'controller'=>'Users','action' => 'logout','admin'=>false), array('escape' => false)); ?> </li>
													</ul>
						</div><!-- end body -->
				</div><!-- end panel -->
			</div><!-- end actions -->
		</div><!-- end col md 3 -->
